package com.simple;

import com.simple.config.SyncConfig;
import com.simple.config.SyncConfigFactory;
import com.simple.parser.SqlGenerateParser;

/**
 * 项目名称：foursmile-local-etl
 * 类名称：Main
 * 类描述：Main
 * 创建时间：2022/10/18
 *
 * @author jiangjunjie   (E-mail:jiangjunjie@foursmile001.com)
 * @version v1.0
 */
public class Main {

    public static void main(String[] args) throws Exception {
        SyncConfigFactory syncConfigFactory = new SyncConfigFactory();
        SyncConfig syncConfig = syncConfigFactory.createByResource("sync.json");
        SqlGenerateParser sqlGenerateParser = new SqlGenerateParser();
        sqlGenerateParser.parse(syncConfig);

        String stringBuilder = "\n\n\n\n\n" +
                sqlGenerateParser +
                "\n\n\n\n\n";
        System.out.println(stringBuilder);
    }

}
